<div class="layer">

  <div>this is <%=name%> layer</div>
  <%for(var i=0;i<arr.length;i++){%>
  <%=arr[i]%>
  <%}%>
</div>